package 补充.输入输出操作.文件操作;

import java.io.*;

public class 标准输入输出流的静态方法 {
    public static void main(String[] args) throws IOException {
        System.setIn(new FileInputStream("D:\\Learn\\javademo\\untitled\\src\\补充_偏\\输入输出操作\\read.txt"));
        System.setOut(new PrintStream("D:\\Learn\\javademo\\untitled\\src\\补充_偏\\输入输出操作\\read2.txt"));
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        while ((str=br.readLine())!=null){
            System.out.println(str);
        }

    }
}
